﻿#include "GlobalManager.h"
#include <qqml.h>

GlobalManager::GlobalManager()
{
    std::cout << "GlobalManager " <<std::endl;
    qmlRegisterType<TcpClientManager>("Top", 1, 0, "TcpClientManager");
    qmlRegisterType<TransferProxy>("Top", 1, 0, "TransferProxy");
}

GlobalManager *GlobalManager::GetInstance() {
    static GlobalManager it;
    return &it;
}
